package com.electromagnetic.industry.software.manage.pojo.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.electromagnetic.industry.software.common.util.EleIdCreator;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("ed_file_relation")
public class EdFileRelation extends BaseModel {

    private String id;

    /**
     * 文件1 主键id
     */
    @TableField(value = "file_id_1")
    private String id1;

    /**
     * 文件2 主键id
     */
    @TableField(value = "file_id_2")
    private String id2;

    /**
     * 关系描述
     */
    private String relationship;

    public void newInit() {
        this.setId(EleIdCreator.createSnowflakeId());
    }
}
